
<script language="javascript">

$(function(){
		   
	$('#formLogin').ajaxForm({
		dataType: 'json',
		beforeSubmit: function() {
			if( $("#formLogin").validate().form()==false )
			return false;
		},
		success: function(responseText, statusText) {
			if(responseText.sucesso){				
				window.location = "/?pg=home";												  
			}else{
				$.jAlert(responseText.mensagem, '', function(result) {});
			}
		}
	})
		
	$("#txtUser").focus();
	
})	

</script>

	
</head>
<body>

<div id="dlogin">
<form action="actions/loginAction.php" method="post" style="background:url(../images/PanelBasBag.png) no-repeat; width:614px; height:363px;" id="formLogin" name="formLogin">
	    
        <div style="position:relative;top:75px;left:280px;">    
        <table width="301" border="0" cellspacing="0">
          <tr>
            <td height="45" colspan="2" align="center"><b>Login de Usu&aacute;rios</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          </tr>
          <tr>
            <td width="75" height="21"></td>
            <td width="222">&nbsp;</td>
          </tr>
          <tr>
            <td height="52"><b>Usu&aacute;rio:<b/></td>
            <td><input type="text" id="txtUser" name="txtUser" class="required"/><br/><a href="?pg=alunoEscola"> Ainda n&atilde;o tenho cadastro </a></td>
          </tr>
          <tr>
            <td height="52"><b>Senha:<b/></td>
            <td><input type="password" id="txtPass" name="txtPass" class="required"/><br/><a href="#"> Esqueci a minha senha </a></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" align="center">
                <input type="submit" id="btnEntrar" value="Entrar" />
            </td>
          </tr>
    </table>
     </div>
        				
	</form>
</div>

</body>
</html>